//
//  PigTypeListModel.h
//  PigMarket
//
//  Created by 张敬 on 2019/8/16.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class PigTypeItem, PigTypeModel;

/*
 "pigPositionId":"",
 "arrearsIf":1,
 "shopId":1,
 "list":Array[4],
 "type":"1"
 */
@interface PigTypeListModel : NSObject

@property (nonatomic, strong) NSNumber *type;
@property (nonatomic, strong) NSArray<PigTypeModel *> *list;
@property (nonatomic, copy) NSString *pigPositionId;
@property (nonatomic, copy) NSString *shopId;
@property (nonatomic, strong) NSNumber *arrearsIf;


@property (nonatomic, assign) CGFloat price;

@end

/*
 "positionName":"",
 "positionId":"-1",
 "typeName":"促销活动",
 "list":Array[2],
 "type":1
 */

@interface PigTypeModel : NSObject

@property (nonatomic, strong) NSNumber *type;
@property (nonatomic, strong) NSArray<PigTypeItem *> *list;
@property (nonatomic, copy) NSString *positionName;
@property (nonatomic, copy) NSString *positionId;
@property (nonatomic, copy) NSString *typeName;

/**
 name
 */
@property (nonatomic, copy) NSString *name;


/**
 rows
 */
@property (nonatomic, copy) NSArray *rows;


/**
 section
 */
@property (nonatomic, assign) NSInteger section;


/**
 一共多少行
 */
@property (nonatomic, assign) NSInteger totalNumber;


/**
 是否被选
 */
@property (nonatomic, assign) BOOL isChicked;


@end


/*
 "unitPrice":0.02,
 "go_status":"正常销售",
 "advanceSaleId":15,
 "aliasName":"前腿1",
 "headImg":"http://39.98.179.212:8090/pigimg/r2.png",
 
 "shoppingIf":0,
 "oldPrice":11.11,
 "weight":0.5,
 "remark":"打折促销了",
 "chunksName":"HT-01",
 
 "type":1,
 "sell_status":0,
 "nowPrice":0.02,
 "positionId":"1",
 "shareUrl":"http://192.168.18.10/pightml/shopShare.html"
 
 */

@interface PigTypeItem : NSObject

@property (nonatomic, copy) NSString *aliasName;
@property (nonatomic, copy) NSString *go_status;
@property (nonatomic, copy) NSString *headImg;
@property (nonatomic, copy) NSString *shareUrl;
@property (nonatomic, copy) NSString *chunksName;
@property (nonatomic, copy) NSString *remark;


@property (nonatomic, strong) NSNumber *unitPrice;
@property (nonatomic, strong) NSNumber *advanceSaleId;
@property (nonatomic, strong) NSNumber *oldPrice;
@property (nonatomic, strong) NSNumber *weight;
@property (nonatomic, strong) NSNumber *type;
@property (nonatomic, strong) NSNumber *sell_status;
@property (nonatomic, strong) NSNumber *nowPrice;
@property (nonatomic, strong) NSNumber *positionId;
@property (nonatomic, strong) NSNumber *shoppingIf;


@property (nonatomic, copy) NSString *desc;
@property (nonatomic, copy) NSString *pubdate;

@property (nonatomic, copy) NSString *varietiesName;
@property (nonatomic, strong) NSNumber *pigNum;
@property (nonatomic, strong) NSNumber *invalidIf;
@property (nonatomic, strong) NSNumber *shoppingCartId;



/**
 是否展开
 */
@property (nonatomic, assign) BOOL isOpening;


/**
 是否被选
 */
@property (nonatomic, assign) BOOL isChicked;


@end


NS_ASSUME_NONNULL_END
